﻿@using NOSDC.Services.Extensions;

@model NOSDC.Models.PreviousEventsModel

@foreach (var item in Model.Events)
{
    <div class="previousEventsWrapper">
        
        <div class="previousEventTitle"><a href="#">@item.Title</a></div>
        <div id="eventLogo">
            @if (item.Logo != String.Empty)
            {
                <div class="eventLogo" style="float:left; width:30px;  height:30px;padding-right:5px;"><img src="@Url.Content("~/Images/Logos/" + @item.Logo)" alt="" /></div>
            }
         </div>


         <div class="eventDesc" style="text-align:left;">@Html.Raw(item.Description.Truncate())</div>
            <div class="eventDate" style="padding-top:5px;">
                <strong>When:</strong> @item.StartDate.ToString("MMMM d, yyyy hh:mm") 
            </div>
                <div class="eventLocation" style="padding-top:5px;">
                <strong>Where:</strong> @item.Location
            </div>
    </div>
}

@if (Model.DisplayMoreLink)
{
    <div id="completeList">View all events</div>
}